package com.niiwoo.activity.stage.dto.request.prize;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.niiwoo.activity.stage.enums.prize.UserPrizeSuitProjectTypeEnum;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class PackageInvestPrizeOccupiedReqDTO extends BaseActivityReqDTO implements Serializable {

	private static final long serialVersionUID = -7279561241452995815L;

	/**
	 * 智能投标的ID
	 */
	private Long packageId;
	
    /**
     * 智能投资订单ID
     */
    private Long packageInvestOrderId;

    /**
     * 用户ID
     */
    private String userId;    
    
    /**
     * 红包ID
     */
    private Long prizeId;
    
    /**
     * 借款期限：必传
     */
    private Integer deadLine;
    
    /**
     * 标的类型 ##UserPrizeSuitProjectTypeEnum
     */
    private UserPrizeSuitProjectTypeEnum suitProjectTypeEnum;
    
    /**
     * 总投资金额
     */
    private BigDecimal totalInvestAmount;

    /**
     * 投资订单详情列表
     */
    public List<InvestOrderDetailDTO> investOrderDetailDTOList;

    @Setter
    @Getter
    public static class InvestOrderDetailDTO implements Serializable {

		private static final long serialVersionUID = 2543389356333052478L;

		/**
         * 投资订单ID
         */
        private Long investOrderId;
        
        /**
         * 标的ID
         */
        private Long projectId;
    	
        /**
         * 投资金额
         */
        private BigDecimal amount;
        
        /**
         * 投资时间
         */
        private Date investTime;
    }
}
